package tech.xs.common.framework.domain.exception;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 无效参数异常
 *
 * @author 沈家文
 * @since 2023/5/10 16:35
 */
@Getter
@Setter
@ToString
public class InvalidParameterException extends BaseException {
    private String fieldName;

    public InvalidParameterException(String msg) {
        super(msg);
    }

    public InvalidParameterException(String fieldName, String msg) {
        super(msg);
        this.fieldName = fieldName;
    }
}
